namespace Skymate.Commands
{
    using System.Threading;

    using Skymate.Lyjt.Core;

    /// <summary>
    /// 联机请求
    /// </summary>
    public class SetRequestOnlineCommand
        :BaseLightCommand
    {
        
        public SetRequestOnlineCommand()
            :base(ProtocolConst.OptionType.SetRequest,
                 ProtocolConst.ObjectType.Online)
        {
        }

        public override void ExecuteCommand(LightAppSession session, SemaphoreRequestInfo requestInfo)
        {
            var message = $"连机请求命令";
            this.ShowLog(session.RemoteEndPoint.ToString(),
                message);

            Thread.Sleep(500);
            session.RequestDatetime();
        }
        
    }
}